﻿Imports Autodesk.AutoCAD.ApplicationServices
Imports Autodesk.AutoCAD.EditorInput
Imports Autodesk.AutoCAD.DatabaseServices


Public Class Util
    ''' <summary>
    ''' 获得一个Editor对象
    ''' </summary>
    ''' <returns>Editor对象</returns>
    ''' <remarks></remarks>
    Public Shared ReadOnly Property AcadEditor() As Editor
        Get
            Return Application.DocumentManager.MdiActiveDocument.Editor
        End Get
    End Property

    ''' <summary>
    ''' 在命令窗口中输出指定消息
    ''' </summary>
    ''' <param name="message">要输出的消息</param>
    ''' <remarks></remarks>
    Public Shared Sub Output(ByVal message As String)
        AcadEditor.WriteMessage(Chr(10) + message)
    End Sub

    

   

End Class
